import request from '../utils/request'
import current from 'element-ui/packages/table/src/store/current'

/**
 * 后面的每次请求都是需要携带token的
 * @returns {AxiosPromise}
 */
export  const findUserList= (current,size,userVO) =>{
  return request({
    url: "/user/findUserPage",
    method: 'post',
    params:{
      current,
      size
    },
    data: userVO
  })
}

/**
 * 删除oss中的图片
 * @param file
 * @returns {AxiosPromise}
 */
export  const deleteImgFile = (file) =>{
  return request({
    url: "/deleteImgFile",
    method: 'post',
    params:{
      file
    }
  })
}
